mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-03 15:40:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <scwx/wsr88d/rpg/packet.hpp>
 | 
						|
 | 
						|
#include <cstdint>
 | 
						|
#include <memory>
 | 
						|
 | 
						|
namespace scwx
 | 
						|
{
 | 
						|
namespace wsr88d
 | 
						|
{
 | 
						|
namespace rpg
 | 
						|
{
 | 
						|
 | 
						|
class GenericRadialDataPacketImpl;
 | 
						|
 | 
						|
class GenericRadialDataPacket : public Packet
 | 
						|
{
 | 
						|
public:
 | 
						|
   explicit GenericRadialDataPacket();
 | 
						|
   ~GenericRadialDataPacket();
 | 
						|
 | 
						|
   GenericRadialDataPacket(const GenericRadialDataPacket&)            = delete;
 | 
						|
   GenericRadialDataPacket& operator=(const GenericRadialDataPacket&) = delete;
 | 
						|
 | 
						|
   GenericRadialDataPacket(GenericRadialDataPacket&&) noexcept;
 | 
						|
   GenericRadialDataPacket& operator=(GenericRadialDataPacket&&) noexcept;
 | 
						|
   virtual std::uint16_t    index_of_first_range_bin() const   = 0;
 | 
						|
   virtual std::int16_t     i_center_of_sweep() const          = 0;
 | 
						|
   virtual std::int16_t     j_center_of_sweep() const          = 0;
 | 
						|
   virtual std::uint16_t    number_of_radials() const          = 0;
 | 
						|
   virtual std::uint16_t    number_of_range_bins() const       = 0;
 | 
						|
   virtual float            start_angle(std::uint16_t r) const = 0;
 | 
						|
   virtual float            delta_angle(std::uint16_t r) const = 0;
 | 
						|
 | 
						|
   virtual const std::vector<std::uint8_t>& level(std::uint16_t r) const = 0;
 | 
						|
 | 
						|
private:
 | 
						|
   std::unique_ptr<GenericRadialDataPacketImpl> p;
 | 
						|
};
 | 
						|
 | 
						|
} // namespace rpg
 | 
						|
} // namespace wsr88d
 | 
						|
} // namespace scwx
 |